Developer Documentation

QuickTime 4 API Documentation

QuickTime 4 Reference

| Previous | Chapter Contents | Chapter Top | Next |

Gradients for Path Fills

A gradient is a fill that contains continuous fades from one color to another. Unlike QuickDraw GX, which supports gradient fills only for bitmaps, QuickTime supports gradient fills for the paths used for QuickTime vectors.

There are two types of gradients: linear, in which the fade begins at one point on a line and ends at another, and circular, in which the fade begins at the center of a circle and ends at the circumference. Figure 56 illustrates a white-to-black, left-to-right linear gradient, and Figure 57 illustrates a white-to-black circular gradient.

Figure 56 A linear gradient

Figure 57 A circular gradient

To enable or disable gradient fills and to specify the attributes of gradients, you add atoms to the vector data stream, as described in "Using QuickTime Vectors" :

For complete descriptions of these atoms and their default values, see "Vector QT Atom Container" .


© 1999 Apple Computer, Inc.

| Previous | Chapter Contents | Chapter Top | Next |